Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-color

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-color

Colors, formatting and other tools for the console

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
608K
decreased by-80.22%
Maintainers
1
Weekly downloads
 
Created

What is cli-color?

The cli-color npm package is a library for adding color and formatting to text in Node.js command line applications. It provides a simple API to style strings that appear in the terminal, making it easier to produce visually distinct and organized output.

What are cli-color's main functionalities?

Text coloring

This feature allows you to change the color of the text output in the terminal. The example shows how to make text appear in red.

const clc = require('cli-color');
console.log(clc.red('This text is red'));

Text formatting

This feature enables text formatting such as making text bold, underlined, etc. The example demonstrates how to make text bold.

const clc = require('cli-color');
console.log(clc.bold('This text is bold'));

Background coloring

This feature allows you to set the background color of the text. The example shows white text on a blue background.

const clc = require('cli-color');
console.log(clc.bgBlue.white('White text on blue background'));

Other packages similar to cli-color

Keywords

FAQs

Package last updated on 29 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc